import math
ch='y'
while ch == 'y' or ch == 'Y':
    print("please shu ru yi ge zi fu chuan")
    n = input()
    sum=0
    if n.isdigit()==True :
        num = int(n)
        if num>0:
            if num%2==1:
                for i in range (0,num+1):
                    sum+=i
                #break
            else:
                while num%2==0:
                    num=num/2
                print(num)
        else:
            print("num<0")
        print(sum)
    else:
        if len(n)>10:
           print("Not numb r or number is bigger than 1000000000")
    print("是否继续");
    ch=str(input())    
